package com.bdqn.mapper;

import com.bdqn.entity.Dish;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bdqn.param.response.DishDto;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 菜品管理 Mapper 接口
 * </p>
 *
 * @author hunter
 * @since 2022-06-11
 */
@Repository
public interface DishMapper extends BaseMapper<Dish> {

    /**
     * 通过名称查询指定的菜品集合
     * @param name
     * @return
     */
    List<DishDto> selectDishList(String name);

    List<Dish> getDishByCategory(Long categoryId);
}
